import React from 'react';
import {Router, Route} from 'dva/router';
import LoginPage from './routes/LoginPage';
import User from './routes/User';

/* eslint react/prop-types:0 */
export default function ({history}) {
    return (
        <Router history={history}>
            <Route path="/" component={LoginPage}/>
            <Route path="/user" component={User}/>
        </Router>
    );
}
